package com.jiangxjsy.admin.configuration;

import com.jiangxjsy.core.security.PasswordEncoder;
import com.jiangxjsy.core.security.bcrypt.BCryptPasswordEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * wukong-crm-master
 * 蒋胜宇
 * 2025/6/13 14:47
 */

@Configuration
public class BeanConfiguration {
    /**
     * 密码编码器，使用 bcrypt 算法
     *
     * @return 密码编码器
     */
    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
